require('../css/commonCss/normalize.css')
require('../css/commonCss/reset.css')
require('../css/commonCss/property.css')
require('../css/commonCss/reset.css')
require('animate.css')
require('../css/advert.less')



/* 
  获取元素
*/
const number = document.querySelector('#number')

/*
   需求: 5秒倒计时 
 */
//文档加载
document.addEventListener('DOMContentLoaded', function () {
    function currentDown() {
        let time = 5;
        setInterval(function () {
            time--; //时间自减

            if (time <= 0) {
                location.href = `./logoin.html`
            } else {
                number.textContent = time + 's'
            }
        }, 1000)
    }
    currentDown()
})

